Skip to content

fix(i18n): translate every connect account status in all locales - #1136

Open
raulriera wants to merge 1 commit into
masterfrom
fix/connect-status-i18n
Open

fix(i18n): translate every connect account status in all locales#1136
raulriera wants to merge 1 commit into
masterfrom
fix/connect-status-i18n

Conversation

@raulriera

Copy link
Copy Markdown
Member

Summary

  • connect_account_status_i18n translates pending, pending_review and unknown, but no locale defined those keys (they defined an orphaned in_progress instead), so the "translation missing" String hit [:title] in practices/settings and connect_accounts/show and raised TypeError for any practice mid-onboarding
  • Renamed in_progresspending (the state it actually described, copy preserved) and added pending_review and unknown subtrees in en, es and pt
  • Regression test asserts the helper returns a title-bearing Hash for every emitted status plus the unknown fallback, in all three locales

Test plan

  • Red test shows missing-translation String for 'pending'
  • Green after locale fixes
  • Full suite passes (523 runs, 0 failures)

The status helper looked up pending, pending_review and unknown keys
that no locale defined (locales only had an orphaned in_progress), so
the missing-translation String hit [:title] in the settings and connect
views and raised TypeError for practices mid-onboarding. Rename
in_progress to pending (same copy) and add pending_review and unknown
in en/es/pt, with a regression test covering every status in every
locale.
@github-actions github-actions Bot added the fix A bug has been resolved label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug has been resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant